package org.balabala.video.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.balabala.video.entity.Comment;
import org.balabala.video.entity.FavoriteInfo;

import java.util.List;

/**
 * (Comment)表数据库访问层
 *
 * @author makejava
 * @since 2021-09-09 15:02:43
 */
@Mapper
public interface CommentDao extends BaseMapper<FavoriteInfo> {
    List<Comment> getByVideoId(Long videoId);

    List<Comment> getByVideoIdLimitOffset(Long videoId, Integer limit, Integer offset);

    int countByVideoId(Long videoId);
}